package com.punai.common.core.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.punai.common.core.domain.BaseEntity;

import java.util.ArrayList;
import java.util.List;

@TableName("eco_company")
public class EcoCompany extends BaseEntity {
    private static final long serialVersionUID = 1L;
    /** 公司ID */
    private String id;
    private Long companyId;
    /** prefix 前缀 生成公司用户使用 */
    private String prx;
    private String companyName;
    private Integer companySort;
    /** 类型  T 土建 Z 专业 */
    private String type;
    /** 状态  0 正常 1 停用 */
    private String status;

    /** L 路桥 A 安装 */
    private String source;

    private String remark;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 子部门 */
    @TableField(exist = false)
    private List<EcoCompany> children = new ArrayList<>();

    @TableField(exist = false)
    private List<String> deptIds = new ArrayList<>();

    @TableField(exist = false)
    private Integer keyNameOrder;


    public String getPrx() {
        return prx;
    }

    public void setPrx(String prx) {
        this.prx = prx;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public Integer getCompanySort() {
        return companySort;
    }

    public void setCompanySort(Integer companySort) {
        this.companySort = companySort;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public List<EcoCompany> getChildren() {
        return children;
    }

    public void setChildren(List<EcoCompany> children) {
        this.children = children;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public List<String> getDeptIds() {
        return deptIds;
    }

    public void setDeptIds(List<String> deptIds) {
        this.deptIds = deptIds;
    }

    public Integer getKeyNameOrder() {
        return keyNameOrder;
    }

    public void setKeyNameOrder(Integer keyNameOrder) {
        this.keyNameOrder = keyNameOrder;
    }
}
